package com.gym.emp.services;

import com.github.pagehelper.PageInfo;
import com.gym.emp.entity.Emp;

import java.util.List;

/**
 * @author ming
 * 2021/11/19
 * description:
 */
public interface EmpServices {

    List<Emp> getAllEmp();

    Emp login(String ename, String pwd);

    Emp getEmpByPhone(String phone);

    Emp getEmpByEno(Integer eno);

    PageInfo<Emp> getEmpByPage(Integer pageIndex);

    boolean delEmp(Integer eno);

    boolean addEmp(Emp emp);

    boolean updateEmp(Emp emp);

}
